Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Explicitly handle redaction #2313

Merged
merged 3 commits into from
Oct 17, 2023
Merged

Conversation

DafyddLlyr
Copy link
Contributor

@DafyddLlyr DafyddLlyr commented Oct 16, 2023

What does this PR do?

Comment on lines +68 to +69
const responses = await $api.export.csvData(sessionId);
const redactedResponses = await $api.export.csvDataRedacted(sessionId);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only place where both redacted and un-redacted payloads were used. This means that these two calls will now be slightly less efficient as the ExportClient is making additional requests to the DB (e.g. to fetch session data).

I think this is a fair compromise as...

  • We only need both in one place (vs. all other methods touched in this PR)
  • Fetching from the DB is the quick / "cheap" part of the function that's being called under the hood - and our GraphQL client (or DB / Hasura) is very likely doing some caching of these requests for us anyway.

@github-actions
Copy link

github-actions bot commented Oct 16, 2023

Removed vultr server and associated DNS entries

@DafyddLlyr DafyddLlyr force-pushed the dp/simplify-redaction-handling branch from d1e6951 to e2f5b55 Compare October 16, 2023 16:13
@DafyddLlyr DafyddLlyr marked this pull request as ready for review October 16, 2023 20:42
@DafyddLlyr DafyddLlyr requested a review from a team October 16, 2023 20:42
@DafyddLlyr DafyddLlyr merged commit bf52435 into main Oct 17, 2023
12 checks passed
@DafyddLlyr DafyddLlyr deleted the dp/simplify-redaction-handling branch October 17, 2023 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants